<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>close</title>
	<script type="text/javascript">
	    function closewin(){
	    	mywindow.close();
	    }
	    mywindow=window.open(",",'width=200,height=100');
	    mywindow.document.write('this is my window');
	</script>
</head>
<body>
<input type="button" onclick="closewin()" value="delele window" />
</body>
</html>